package com.aolong.archives.core.sysmanage.dao.impl;

import java.util.HashMap;
import java.util.Map;

import com.aolong.archives.core.sysmanage.dao.IParameterDao;
import com.rock.platform.dao.BaseDao;

public class ParameterDao extends BaseDao implements IParameterDao {

	public String findParameterByKey(String key) {

		String strSql = "SELECT parameterValue from TSM_Parameter where parameterKey = :key";
		Map<String,Object> params = new HashMap<String,Object>();
		params.put("key", key);
		Object result = super.getSingleResult(strSql,params);
		return (result == null) ? "" : result.toString();
	}

}
